source /home/work_nfs7/xlgeng/.bashrc
train_config=conf/train_whisper_small_streaming.yaml
dir=/home/work_nfs6/xlgeng/new_workspace/wenet_gxl_en_cn/streaming_fbank_exp/small_2_3000h
mkdir -p $dir
#train_config=conf/train_salmonn_v8.yaml
decode_checkpoint=$dir/epoch_9.pt
decode_checkpoint_name=9pt
average_num=30
decode_modes="ctc_greedy_search ctc_prefix_beam_search attention attention_rescoring"

stage=5 # start from 0 if you need to start from data_list preparation
stop_stage=6
#test_sets=("aishell1" "aishell2" "SPEECHIO_ASR_ZH00000" "SPEECHIO_ASR_ZH00001" "SPEECHIO_ASR_ZH00002" "SPEECHIO_ASR_ZH00003" "SPEECHIO_ASR_ZH00004" "SPEECHIO_ASR_ZH00005" "test_meeting" "test_net" )
#test_sets1=("aishell1"  "SPEECHIO_ASR_ZH00001" "SPEECHIO_ASR_ZH00004" )
#test_sets2=("aishell2" "SPEECHIO_ASR_ZH00000"  )
#test_sets3=( "SPEECHIO_ASR_ZH00002"  "test_net" )
#test_sets4=(  "test_meeting" "SPEECHIO_ASR_ZH00003" )
gxl_num=002
my_named_nohup {$gxl_num}_test_1 ./recognize1.sh --gpu_id 2 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage
my_named_nohup {$gxl_num}_test_2 ./recognize2.sh --gpu_id 7 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage
#my_named_nohup {$gxl_num}_test_3 ./recognize3.sh --gpu_id 2 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage
#my_named_nohup {$gxl_num}_test_4 ./recognize4.sh --gpu_id 3 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage
#my_named_nohup {$gxl_num}_test_mix1  ./test_mix1.sh --gpu_id 5 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name"
#my_named_nohup {$gxl_num}_test_mix2  ./test_mix2.sh --gpu_id 6 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name"

#added_sets1=( "huawei_asr/noisy" "huawei_asr/real" "107" )
#added_sets2=("103" "assistant"  "xiaotiancai" )
#my_named_nohup test_added1_step_17850 ./recognize_added.sh --added_sets $added_sets1 --gpu_id 5 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage
#my_named_nohup test_added2_step_17850 ./recognize_added.sh --added_sets $added_sets2 --gpu_id 6 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage














# #!/bin/bash

# # 后台执行A.sh，B.sh，C.sh
# ./run_test_1_1.sh &
# pid_A=$!

# ./run_test_1_2.sh &
# pid_B=$!

# ./run_test_1_3.sh &
# pid_C=$!

# ./run_test_1_4.sh &
# pid_D=$!

# # 等待所有后台任务完成
# wait $pid_A
# wait $pid_B
# wait $pid_C
# wait $pid_D

# echo "所有脚本执行完成"